﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Presentacion
{
    public partial class frmGestionarVenta : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!User.IsInRole("ventas") && !User.IsInRole("rrhh"))
            {
                GridView1.Visible = false;
                txtBusca.Visible = false;
                btnBuscar.Visible = false;
                btnNuevaVenta.Visible = false;

                Label1.Visible = false;
                Response.Redirect("Default.aspx");

            }
        }
        protected void btnNuevaVenta_Click(object sender, EventArgs e)
        {
            Response.Redirect("frmVenta.aspx?acc=nuevo");
        }
    }
}